package com.minhua.jijiehao2.bean

import java.io.Serializable

/**
 * @author moo
 * @date 2018/1/12.
 * @describe
 */

data class CircleBean(var serviceType: List<CircleServiceBean>,
                      var adPics: List<CirclePicsBean>,
                      var bannerPics: List<CirclePicsBean>,
                      var moreInterface: List<CircleServiceTypeBean>,
                      var recommendProd: List<BusinessBean>)


/**
 * "id":1,
 *"big_type":1,
 *"type":11,
 *"type_name":"璐锋",
 *"type_img_path":"http://test.51jjhao.com/static/pic/b_dk.png",
 *"sort":1
 */
data class CircleServiceBean(var id: Int,
                             var big_type: Int,
                             var type: Int,
                             var type_name: String,
                             var type_img_path: String,
                             var sort: Int)

/**
 *"banner_url":"http://m.51jjhao.com/static/pic/banner1.png",
 * "skip_url":"http://m.51jjhao.com/static/pic/first_001.png",
 */
data class CirclePicsBean(var banner_url: String,
                          var adUrl: String,
                          var skip_url: String)


data class CircleServiceTypeBean(var type_name: String,
                                 var type_img_path: String,
                                 var detailType_list: List<CircleServiceDetailTypeBean>,
                                 var type: String) : Serializable

/**  "item_code":"211",
 * "item_value":"支付通道"
 */
data class CircleServiceDetailTypeBean(var item_code: String,
                                       var item_value: String) : Serializable

data class BusinessBean(
        var id: Int,
        var proc_id: Long,
        var type: Int,
        var cp_type: Int,
        var org_id: Int,
        var proc_name: String?,
        var logo_path: String?,
        var official_url: String?,
        var proc_flag: Int,
        var status: Int,
        var sort: Int,
        var audit_person: String?,
        var audit_state: Int,
        var audit_message: String?,
        var proc_info: String?,
        var companyAddress: String?,
        var registeredCapital: String?,
        var introduction: String?,
        var audit_time: String?,
        var create_time: String?,
        var update_time: String?,
        var flag_msg: String?,
        var show_click_num: String?,
        var operativeInfoList: List<ContactsBean>?
) : Serializable

data class ContactsBean(
        var id: Int = 0,
        var proc_id: Long = 0L,
        var name: String? = "",
        var tel: String? = "",
        var wx: String? = "",
        var qq: String? = "",
        var job: String? = "",
        var module: String? = ""
) : Serializable {
    override fun toString(): String {
        return "ContactsBean(id=$id, proc_id=$proc_id, name=$name, tel=$tel, wx=$wx, qq=$qq, job=$job, module=$module)"
    }
}
